package br.ufpe.cin.rdfilter.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the query database table.
 * 
 */
@Entity
@Table(name="query")
@NamedQueries({
	@NamedQuery(name = "Query.findAll", query = "SELECT q FROM Query q ORDER BY q.label ASC"),
	@NamedQuery(name = "Query.findSome", query = "SELECT q FROM Query q WHERE q.id=3 OR q.id=4 OR q.id=12 OR q.id=13 OR q.id=14"),
	@NamedQuery(name = "Query.findQuery", query = "SELECT q FROM Query q WHERE q.label = ?1")
})
public class Query implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="id_query_seq", sequenceName="id_query_seq", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="id_query_seq")
	@Column(unique=true, nullable=false)
	private Integer id;

	@Column(length=2147483647)
	private String description;

	@Column(length=2147483647)
	private String label;

	@Column(length=2147483647)
	private String statement;

	public Query() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLabel() {
		return this.label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getStatement() {
		return this.statement;
	}

	public void setStatement(String statement) {
		this.statement = statement;
	}

}